# Contributor: omni <omni+alpine@hack.org>
# Maintainer: omni <omni+alpine@hack.org>
pkgname=libmd
pkgver=1.0.4
pkgrel=0
pkgdesc="Message Digest functions from BSD systems"
url="https://www.hadrons.org/software/libmd/"
arch="all"
license="Public Domain"
subpackages="$pkgname-dev $pkgname-doc"
source="https://archive.hadrons.org/software/libmd/libmd-$pkgver.tar.xz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
	install -Dm0644 COPYING -t "$pkgdir"/usr/share/licenses/"$pkgname"
}

sha512sums="
731553ecc5e0e1eb228cced8fccd531fe31fb5c7627ca30013d287e1aeb8222959cf7498fbb7414bbabb967b25d4e8b0edd54fc47f6ccf55fc91087db0725ce3  libmd-1.0.4.tar.xz
"
